You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clVector Structure > clVector Methods > SetVal Method > clVector.SetVal Method ([In] double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clVector.SetVal Method ([In] double)

Initialize elements to Value.

Syntax
C#
Visual Basic
public TOpenCLMtxVec SetVal([In] double Value);

Set all calling object elements to Value. If the calling object is complex then the real part is set to Value and the imaginary is set to zero.

var a: clVector; begin a.Size(4,False); a.SetVal(1); // a = [1,1,1,1] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!